package org.tc.product.service;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.product.entity.Commoditydetails;

import java.util.List;

@RequestMapping("/CommoditydetailsService")
public interface CommoditydetailsService {

    @RequestMapping("/selectAll")
    List<Commoditydetails> selectAll();

    @RequestMapping("/selectComDeByid")
    List<Commoditydetails> selectComDeByid(@RequestParam("commodityid") Integer commodityid);

    @RequestMapping("/insertComDe")
    int insertComDe(@RequestBody Commoditydetails commoditydetails);
}
